package se.webbzon.boltzmann.game.object.platform;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.boltzmann.environment.EnvironmentInflator;
import se.webbzon.oschi01.worldeditor.WorldObjectDeflation;
import se.webbzon.oschi01.worldobject.WorldObject;

public class PlatformInflator extends EnvironmentInflator {

	/*============================================================
	Constructors
	============================================================*/
	
	public PlatformInflator(AbstractEnvironment env) {
		super(env,Platform.worldObjectName);
	}
	
	/*============================================================
	Constructors
	============================================================*/
	
	@Override public WorldObject makeWorldObject(WorldObjectDeflation deflation) {
		return ((PlatformDeflation) deflation).makePlatform();
	}

	@Override public WorldObjectDeflation makeDeflation(int deflationProperties, WorldObject[] dependencies) {
		return new PlatformDeflation(deflationProperties,dependencies);
	}

}
